import request from "@/utils/request";

export const accountQueryApi={
  contextPath: '/equip', //按照实际应用修改成微服务的名�?//
  getList: (data)=>{ //树形图查询//
    return request({
      url: accountQueryApi.contextPath+'/t-en-wz-sblx/getList',
      method: 'POST',
      data: data
    })
  },
  queryDictData: (code) => { //获取物资
    return request({
      url: accountQueryApi.contextPath + '/t-en-wz-sblx/getList?isLeaf=0',
      method: 'POST',
      // data: code
    })
  },
  queryDictDatasb: (code) => { //获取物资
    return request({
      url: accountQueryApi.contextPath + '/t-en-wz-sblx/getList?pid='+code,
      method: 'POST',
      // data: code
    })
  },
  wzEquipTj:(data)=>{ //物资设备统计
    return request({
      url: accountQueryApi.contextPath + '/t-en-wz-equip/wzEquipTj',
      method: 'POST',
      data: data
    })
  },
  jfEquipTj:(data) =>{// 能源张设备统计
    return request({
      url: accountQueryApi.contextPath + '/en-wz-jf-equip/jfEquipTj',
      method: 'POST',
      data: data
    })
  }

}
